import { NodeRoot } from "./NodeRoot";

export class ParamNode extends NodeRoot {
    public parameterGUID:string;
    getValue<T>(type?: T) {
       return this.parent.getParamObject(this.parameterGUID).getValue() as T;
    }
    setValue(value) {
        this.parent.getParamObject(this.parameterGUID).setValue(value);
    }
}
export class ParamObject{
    public guid:string;
    public name:string;
    private value:any;
    public setValue(value){
        this.value=value;
    }
    public getValue(){
        return this.value;
    }
}